home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
print
/
rpload.exe
/
REMOTE.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-24
|
2KB
|
44 lines
@ECHO OFF
rem --------------------------------------------------------------------
rem PROGRAM NAME : REMOTE.BAT
rem
rem AUTHOR : David Truncale
rem ORIGINAL DATE : 7/22/91
rem REVISED DATE : 7/24/91 - Pass print server name in params.
rem
rem PURPOSE : The purpose of this batch file is to load RPRINTER
rem : from the user's AUTOEXEC.BAT file. The program
rem : assumes that PSERVER'S name is passed in variable
rem : %1 and printer number is passed in variable %2.
rem :
rem : The program checks the ERRORLEVEL returned by
rem : RPRINTER.EXE and, if set, pauses for 10 seconds
rem : and then tries to load RPRINTER a second time.
rem : This should ensure that RPRINTER is loaded every
rem : time a user reboots their machine (as opposed to
rem : every OTHER time, when this technique is NOT
rem : used).
rem :
rem --------------------------------------------------------------------
:START
IF "%2" == "" GOTO NOPARMS
RPRINTER %1 %2
IF NOT ERRORLEVEL 1 GOTO END
ECHO Unloading RPRINTER, Please standby...
SLEEP 5
RPRINTER %1 %2 -R
ECHO Reloading RPRINTER, Please standby...
SLEEP 5
GOTO START
:NOPARMS
ECHO
ECHO You must specify the name of your print server and the printer
ECHO number (0 thru 15). For example:
ECHO.
ECHO REMOTE PSERVE 8
ECHO.
ECHO If you're not sure of your print server name or printer number,
ECHO please see your LAN Administrator.
ECHO.
:END